// 获取验证码

import { setSmsSend } from "@/api/http.js";
import { Toast } from "vant";
export default async function smsSend(phone, type) {
  const params = {
    phone,
    type,
  };
  const data = await setSmsSend(params);
  data.code == 200 ? Toast.success(data.msg) : Toast.fail(data.msg);
}
